<?php  include 'template/header.php';?>
<div id="main">
    <div class="wrapper-left">
        <div class="filtering">
            <?php if(!(isset($show_menu)&&$show_menu=='1')) :?>
            <div class="filtering-box filter-cats">
                <h5><?php echo $category_info[0]['DESCRIPTION']; ?></h5>
                <ul>
                    <?php foreach ($sub_category_info as $row) :?>
                        <?php if(isset($sub_category_id)&&$sub_category_id==$row['SUB_CATEGORY_ID']) :?>
                            <li><a class='on' href="<?php echo base_url() ?>course/read/<?php echo $row['CATEGORY_ID']."/".$row['SUB_CATEGORY_ID']; ?>"><?php echo $row['DESCRIPTION']; ?></a></li>
                        <?php else: ?>
                            <li><a href="<?php echo base_url() ?>course/read/<?php echo $row['CATEGORY_ID']."/".$row['SUB_CATEGORY_ID']; ?>"><?php echo $row['DESCRIPTION']; ?></a></li>
                        <?php endif; ?>
                            
                    <?php endforeach; ?>
                </ul>
            </div>
            <?php endif; ?>            
        </div>         
    </div>
   
</div>
<?php  include 'template/footer.php';?>